package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.common.R;
import com.itheima.reggie.common.dto.OrderPageDTO;
import com.itheima.reggie.entity.Orders;
import com.itheima.reggie.entity.User;

import java.util.Date;

public interface OrderService extends IService<Orders> {
    R<String> payment(Orders orders);

    R<Page<OrderPageDTO>> userPage(Long page, Long pageSize);

    R<Page<Orders>> orderPage(Long page, Long pageSize, String number, Date beginTime, Date endTime);
}